package com.feng.chat.service;

import com.feng.chat.dto.Result;
import com.feng.chat.entity.Contact;
import com.baomidou.mybatisplus.extension.service.IService;
import com.feng.chat.entity.ContactApply;
import com.feng.chat.vo.ApplyDeclineVO;
import com.feng.chat.vo.EditRemarkVO;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * <p>
 * 用户好友关系表 服务类
 * </p>
 *
 * @author dyf
 * @since 2022-05-31
 */
public interface IContactService extends IService<Contact> {
    //获取未读的好友申请消息数量
    public Result GetApplyUnreadNum(Integer id);

    //获取好友列表
    public Result friendList(Integer id);

    // 获取好友申请信息
    public Result applyRecords(Integer id,Integer page,Integer page_size);

    //通过手机号查询用户
    public Result search(String mobile);

    //通过id查询用户
    public Result detail(Integer id,Integer user_id);

    //发送好友申请
    public Result applyCreate(ContactApply contactApply);

    //拒绝好友申请
    public Result applyDecline(ApplyDeclineVO applyDeclineVO);

    //同意好友申请
    public Result applyAccept(Integer id,ApplyDeclineVO applyDeclineVO);

    //删除好友
    public Result delete(Integer friend_id,Integer userId);

    //修改好友备注
    public Result editRemark(EditRemarkVO editRemarkVO,Integer userId);
}
